<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div class="box">
      <div class="boxl">
        <div class="boxl1">
          <div>校园风光</div>
          <div>XIAO YUAN FENG GUANG</div>
        </div>
        <div class="boxl2"></div>
      </div>
      <div class="boxr">
        <div class="boxr11">
          <div class="boxr1"></div>
          <div class="boxr4">
            <div class="cn">学术研究</div>
            <div class="py">XUE SHU YAN JIU</div>
          </div>
          <div class="boxr5"></div>
        </div>
        <div class="boxr22">
          <div class="boxr2">
            <div>学生活动</div>
            <div>XUE SHENG HUO DONG</div>
          </div>
          <div class="boxr3"></div>
          <div class="boxr6"></div>
        </div>
      </div>
    </div>

    <div class="b"></div>
  </body>
  <style>
    .box {
      width: 1200px;
      height: 400px;
      background-color: rgb(173, 166, 249);
      /* float: left; */ /*因为盒子浮动的时候自动居中没有用，所以注释掉了*/
      margin: auto; /*自动计算使盒子居中，盒子浮动的时候没有用*/
    }
    .boxl {
      width: 300px;
      height: 400px;
      background-color: blueviolet;
      float: left;
    }
    .boxr {
      width: 900px;
      height: 400px;
      background-color: antiquewhite;
      float: left;
    }
    .boxl1 {
      width: 300px;
      height: 200px;
      background-color: brown;
      color: white; /* 设置文字颜色为白色 */
      box-sizing: border-box;
      padding: 50px 0px 0px 30px;
    }
    .boxl1 div:first-child {
      font-weight: bold; /* 第一行加粗 */
      font-size: 28px;
    }

    .boxl1 div:last-child {
      font-weight: normal; /* 第二行不加粗 */
      font-size: 14px;
    }

    .boxl2 {
      width: 300px;
      height: 200px;
      background-color: brown;
      background-image: url("image.png");
      background-size: cover; /* 铺满且保持比例 */
      background-repeat: no-repeat;
      background-position: center; /* 居中显示 */
      float: left;
    }
    .boxr11 {
      width: 900px;
      height: 248px;
      background-color: blueviolet;
    }
    .boxr22 {
      width: 900px;
      height: 152px;
      background-color: black;
    }
    .boxr1 {
      width: 543px;
      height: 248px;
      background-color: rgb(31, 19, 2);
      background-image: url("image copy.png");
      background-size: cover; /* 铺满且保持比例 */
      background-repeat: no-repeat;
      background-position: center; /* 居中显示 */
      float: left;
    }
    .boxr2 {
      width: 303px;
      height: 152px;
      background-color: rgb(17, 159, 147);
      box-sizing: border-box;
      padding: 50px 0px 0px 30px;
      float: left;
    }
    .boxr2 div:first-child {
      color: white;
      font-weight: bold;
      font-size: 30px;
    }
    .boxr2 div:last-child {
      color: white;
      font-weight: normal;
      font-size: 14px;
    }
    .boxr3 {
      width: 303px;
      height: 152px;
      background-color: aquamarine;
      background-image: url("image copy 2.png");
      background-size: cover; /* 铺满且保持比例 */
      background-repeat: no-repeat;
      background-position: center; /* 居中显示 */
      float: left;
    }
    .boxr4 {
      width: 157px;
      height: 248px;
      background-color: rgb(209, 198, 85);
      float: left;
      box-sizing: border-box;
      padding: 0px 20px 0px 0px;

      display: flex;
      flex-direction: row-reverse;
      align-items: center; /* 居中对齐 */
    }
    .boxr4 .cn {
      writing-mode: vertical-rl;
      text-orientation: upright;
      color: white;
      font-size: 28px;
      font-weight: bold;
    }
    .boxr4 .py {
      writing-mode: sideways-rl;
      text-orientation: upright;
      color: white;
      font-size: 14px;
      font-weight: normal;
    }
    .boxr5 {
      width: 200px;
      height: 248px;
      background-color: aliceblue;
      float: left;
      background-image: url("image copy 3.png");
      background-size: cover; /* 铺满且保持比例 */
      background-repeat: no-repeat;
      background-position: center; /* 居中显示 */
      float: left;
    }
    .boxr6 {
      width: 294px;
      height: 150px;
      background-color: aquamarine;
      background-image: url("image copy 4.png");
      background-size: cover; /* 铺满且保持比例 */
      background-repeat: no-repeat;
      background-position: center; /* 居中显示 */
      float: left;
    }
  </style>
</html>
